const nodata = require('../tw-lib-base/no-data/props')
const commonProps = require('../tw-lib-base/chart/common-props')
// const axisProps = require('../tw-lib-base/chart/axis-props')
// const datazoomProps = require('../tw-lib-base/chart/datazoom-props')
// const tooltipProps = require('../tw-lib-base/chart/tooltip-props')

module.exports = {
  ...commonProps,

  // ...axisProps,
  // ...datazoomProps,
  // ...tooltipProps,

  data: {
    type: Array,
    default () {
      return {
        name: ['学前', '小学', '初中', '中职', '普高', '特殊教育'],
        data: [{
          name: '和平里学区',
          data: [0.001, 0.001, 0.001, 5.001, 10.001, 1.001]
        }, {
          name: '安定门-交通口学区',
          data: [52.001, 14.001, 18.001, 0.001, 0.001, 0.001]
        }, {
          name: '北新桥-东直门学区',
          data: [38.001, 9.001, 14.001, 0.001, 2.001, 0.001]
        }, {
          name: '东四-朝阳门-建国门学区',
          data: [25.001, 4.001, 8.001, 0.001, 2.001, 0.001]
        }, {
          name: '景山-东华门学区',
          data: [41.001, 24.001, 16.001, 3.001, 3.001, 1.001]
        }, {
          name: '东花市-崇文门-前门学区',
          data: [40.001, 18.001, 16.001, 4.001, 5.001, 1.001]
        }, {
          name: '龙潭-体育馆路学区',
          data: [45.001, 22.001, 13.001, 2.001, 3.001, 1.001]
        }, {
          name: '天坛-永定门外学区',
          data: [82.001, 30.001, 20.001, 4.001, 6.001, 1.001]
        }],
        note: '东城区学校总数',
        circleCenter: [
          ['5%', '35%'], ['15%', '35%'], ['25%', '35%'], ['35%', '35%'],
          ['45%', '35%'], ['55%', '35%'], ['65%', '35%'], ['75%', '35%']
        ],
        circleRadius: [
          ['42%', '50%'], ['42%', '50%'], ['42%', '50%'], ['42%', '50%'],
          ['42%', '50%'], ['42%', '50%'], ['42%', '50%'], ['42%', '50%']
        ]
      }
    },
    name: '图表数据集',
    filedType: 'api'
  },
  height: {
    type: String,
    default: '220px',
    name: '图表容器高度',
    filedType: 'string'
  },
  bgColor: {
    type: String,
    default: 'transparent',
    name: '背景颜色',
    filedType: 'color'
  },
  // 图例
  showLegend: {
    type: Boolean,
    default: true,
    name: '显示图列',
    filedType: 'switch'
  },
  legendFontSize: {
    type: String,
    default: '18',
    name: '图例字体',
    filedType: 'string'
  },

  legendColor: {
    type: String,
    default: '#bad3ff',
    name: '图例颜色',
    filedType: 'color'
  },

  icon: {
    type: String,
    default: 'roundRect',
    name: '图例数据类型',
    filedType: 'select',
    options: [
      {
        name: '方块',
        value: 'rect'
      },
      {
        name: '圆点',
        value: 'circle'
      },
      {
        name: '圆角方块',
        value: 'roundRect'
      }
    ]
  },

  legendLeft: {
    type: String,
    default: 'auto',
    name: '图例左侧距离',
    filedType: 'string'
  },

  legendTop: {
    type: String,
    default: '15%',
    name: '图例上侧距离',
    filedType: 'string'
  },

  legendRight: {
    type: String,
    default: '10%',
    name: '图例右侧距离',
    filedType: 'string'
  },

  legendBottom: {
    type: String,
    default: 'auto',
    name: '图例下侧距离',
    filedType: 'string'
  },
  legendHeight: {
    type: String,
    default: '6',
    name: '图例高度',
    filedType: 'string'
  },
  legendWidth: {
    type: String,
    default: '20',
    name: '图例宽度',
    filedType: 'string'
  },
  legendAllWidth: {
    type: String,
    default: '200',
    name: '图例宽度',
    filedType: 'string'
  },

  label1Color: {
    type: String,
    default: '#bad3ff',
    name: '圈外字体颜色',
    filedType: 'color'
  },
  label1FontSize: {
    type: String,
    default: '16',
    name: '圈外字体大小',
    filedType: 'string'
  },
  label1Padding: {
    type: String,
    default: '-46',
    name: '圈外文字偏移',
    filedType: 'string'
  },
  label2Color: {
    type: String,
    default: '#fff',
    name: '圈内字体颜色',
    filedType: 'color'
  },
  label2FontSize: {
    type: String,
    default: '30',
    name: '圈内字体大小',
    filedType: 'string'
  },
  labelColor: {
    type: String,
    default: 'rgb(186, 211, 255)',
    name: '汇总字体颜色',
    filedType: 'color'
  },
  labelFontSize: {
    type: String,
    default: '24px',
    name: '汇总字体大小',
    filedType: 'string'
  },
  labelDigiFontSize: {
    type: String,
    default: '32px',
    name: '汇总数字字体',
    filedType: 'string'
  },
  marginRight: {
    type: String,
    default: '0px',
    name: '汇总与图形间距',
    filedType: 'string'
  },

  ...nodata

}
